using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace ScreenTest.Projectiles
{
    class Projectile
    {
        public int owner;
        public Vector2 position;
        public Vector2 velocity;
        const int SIZE = 8;
        int type;

        public int Type
        {
            get { return type; }
        }

        public Projectile(int type)
        {
            this.type = type;
        }

        public BoundingBox GetBoundingBox()
        {
            Vector3 min = new Vector3(position.X - SIZE / 2, position.Y - SIZE / 2, 0);
            Vector3 max = new Vector3(position.X + SIZE / 2, position.Y + SIZE / 2, 0);

            return new BoundingBox(min, max);
        }
    }
}
